package com.sh.business.domain.bo;

import com.sh.business.domain.UserInvest;
import com.sh.common.mybatis.core.domain.BaseEntity;
import com.sh.common.core.validate.AddGroup;
import com.sh.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 用户投资记录业务对象 bms_user_invest
 *
 * @author ruoyi
 * @date 2024-10-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = UserInvest.class, reverseConvertGenerate = false)
public class UserInvestBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */

    private Long userId;

    /**
     * 订单编号
     */

    private String orderSn;

    /**
     * 购买类型
     */
    private Integer type;

    /**
     * 购买数量
     */
    private BigDecimal purchaseAmount;

    /**
     * 充值金额
     */
    @NotNull(message = "充值金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal amount;

    /**
     * 组合复购u数量
     */
    private BigDecimal usdtAmount;

    /**
     * hash
     */
    @NotBlank(message = "hash不能为空", groups = { AddGroup.class, EditGroup.class })
    private String txHash;

    /**
     * 状态（0：错误数据 1：待确认 2: 确认到账）
     */

    private Integer status;

    /**
     * 时间
     */

    private Date transferTime;

    /**
     *
     */

    private String fromAddress;

    /**
     *
     */

    private String toAddress;

    /**
     *
     */

    private String notifyData;

    /**
     *
     */
    private String remark;

    /**
     * 序号
     */
    private String mark;

    /**
     * jobId
     */
    private Long jobId;

    /**
     * 起始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
}
